/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.clebersantos.dao;

import br.com.clebersantos.pojos.Ingredientes;
import br.com.clebersantos.pojos.Insumos;
import br.com.clebersantos.util.HibernateUtil;
import java.io.Serializable;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author Jurema
 */
public class IngredientesDAO implements Serializable{
    
    private Ingredientes ingredientes = new Ingredientes();
    private List listaInsumos;
    Session sessao;
    Transaction tx;
    
    
    public List addIngredientes(Insumos in){
        try {
            listaInsumos.add(in);
            for (int i = 0; i < listaInsumos.size(); i++) {
                System.out.println("Impressão DAO" + listaInsumos.get(i));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }finally{
            return listaInsumos;
        }
    }

    public Ingredientes getIngredientes() {
        return ingredientes;
    }

    public void setIngredientes(Ingredientes ingredientes) {
        this.ingredientes = ingredientes;
    }

    public List getListaIngredientes() {
        return listaInsumos;
    }

    public void setListaIngredientes(List listaIngredientes) {
        this.listaInsumos = listaIngredientes;
    }
      
    
}
